// load template files
import Vue from 'vue'
import VueRouter from 'vue-router'

// load views
import Homepage from '../views/home/Homepage.vue'
import MatchInfo from '../views/matches/MatchInfo.vue'
import AboutUs from '../views/about/AboutUs.vue'

Vue.use(VueRouter)

// router rule configuration
export default new VueRouter({
	mode: 'hash',
	base: __dirname,
	routes: [{
		path: '/',
		component: Homepage
	}, {
		path: '/match/season/:seasonId',
		component: MatchInfo
	}, {
		path: '/match/season/:seasonId/week/:week',
		component: MatchInfo
	}, {
		path: '/about',
		component: AboutUs
	}, {
		path: '*',
		redirect: '/'
	}]
})